Hybrid inheritance example